package com.caipin.domain.web;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:52
 * @Description: TODO
 */
public class InvasionWarning {
    private String grade;

    private String clbum;

    private String happenTime;

    private String imgSrc;

    public com.caipin.domain.web.InvasionWarning setGrade(String grade) {
        this.grade = grade;
        return this;
    }

    public com.caipin.domain.web.InvasionWarning setClbum(String clbum) {
        this.clbum = clbum;
        return this;
    }

    public com.caipin.domain.web.InvasionWarning setHappenTime(String happenTime) {
        this.happenTime = happenTime;
        return this;
    }

    public com.caipin.domain.web.InvasionWarning setImgSrc(String imgSrc) {
        this.imgSrc = imgSrc;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.web.InvasionWarning))
            return false;
        com.caipin.domain.web.InvasionWarning other = (com.caipin.domain.web.InvasionWarning)o;
        if (!other.canEqual(this))
            return false;
        Object this$grade = getGrade(), other$grade = other.getGrade();
        if ((this$grade == null) ? (other$grade != null) : !this$grade.equals(other$grade))
            return false;
        Object this$clbum = getClbum(), other$clbum = other.getClbum();
        if ((this$clbum == null) ? (other$clbum != null) : !this$clbum.equals(other$clbum))
            return false;
        Object this$happenTime = getHappenTime(), other$happenTime = other.getHappenTime();
        if ((this$happenTime == null) ? (other$happenTime != null) : !this$happenTime.equals(other$happenTime))
            return false;
        Object this$imgSrc = getImgSrc(), other$imgSrc = other.getImgSrc();
        return !((this$imgSrc == null) ? (other$imgSrc != null) : !this$imgSrc.equals(other$imgSrc));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.web.InvasionWarning;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $grade = getGrade();
        result = result * 59 + (($grade == null) ? 43 : $grade.hashCode());
        Object $clbum = getClbum();
        result = result * 59 + (($clbum == null) ? 43 : $clbum.hashCode());
        Object $happenTime = getHappenTime();
        result = result * 59 + (($happenTime == null) ? 43 : $happenTime.hashCode());
        Object $imgSrc = getImgSrc();
        return result * 59 + (($imgSrc == null) ? 43 : $imgSrc.hashCode());
    }

    public String toString() {
        return "InvasionWarning(grade=" + getGrade() + ", clbum=" + getClbum() + ", happenTime=" + getHappenTime() + ", imgSrc=" + getImgSrc() + ")";
    }

    public String getGrade() {
        return this.grade;
    }

    public String getClbum() {
        return this.clbum;
    }

    public String getHappenTime() {
        return this.happenTime;
    }

    public String getImgSrc() {
        return this.imgSrc;
    }
}

